/*
 * Project: Sudoku Explainer
 * Copyright (C) 2006-2007 Nicolas Juillerat
 * 
 * Project: Sudoku Hint Engine for Android
 * Copyright (C) 2010-2013 Emanuel Moecklin
 * 
 * Available under the terms of the Lesser General Public License (LGPL)
 */
package com.onegravity.sudoku.solver.accumulator;

import java.util.ArrayList;
import java.util.List;

import com.onegravity.sudoku.solver.core.Hint;

public class DefaultHintsAccumulator implements HintsAccumulator {

    private final List<Hint> hints;

    public DefaultHintsAccumulator() {
        super();
        hints = new ArrayList<Hint>();
    }

	@Override
    public void add(Hint hint) throws StopHintProductionException {
        if (!hints.contains(hint))
            hints.add(hint);
    }

	@Override
	public List<Hint> getHints() {
		return hints;
	}
    
}